package com.flywen.generator;

public class XmlMaker {
    private ParserInfo parserInfo;

    public XmlMaker(ParserInfo parserInfo) {
        this.parserInfo = parserInfo;
    }

    public void makeDao(String tableName) throws Exception {
        Utils.writeContentToFile(Utils.createFile(this.parserInfo.getDaoPackage(), this.parserInfo.getDaoName(), ".xml"), Utils.generateDaoContent(this.parserInfo, "TemplateMapper.ftl"));
    }
}